package xjf;

import java.util.Arrays;

public class Double {
    public static void main(String[] args) {
        int[] rad = new int[6];
        int i = 0;
        System.out.print("红球选:");

        while(i < 6) {
            rad[i] = (int)(Math.random() * 33 + 1);

            for(int j = 0; j < rad.length; ++j) {
                if (i != j && rad[i] == rad[j]) {
                    --i;
                    break;
                }
            }
            ++i;
        }
        Arrays.sort(rad);
        System.out.println(Arrays.toString(rad));
        System.out.println("蓝球选:[" + (int)(Math.random() * 12 + 1)+"]");
    }
}
